import MyDate from "./MyDate";
import "./LogItem.css";
import Card from "./UI/Card/Card";

const LogItem = (props) => {
  console.log(props);
  return (
    <Card className="item">
      {/* 日期 */}
      <MyDate date={props.date} />
      {/* 内容 */}
      <div className="content">
        <h2 className="desc">{props.desc}</h2>
        <div className="time">{props.time}分钟</div>
      </div>
    </Card>
  );
};

export default LogItem;
